package com.java.thread.join;

public class Client {
    public static void main(String[] args){
        JoinThread a = new JoinThread();
        a.start();
        try {
            a.join(); //线程a执行完毕后，再往下执行
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        JoinThread b = new JoinThread();
        b.start();
    }
}
